package com.jesper.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jesper.mapper.OrderItemMapper;
import com.jesper.model.OrderItem;
import org.springframework.stereotype.Service;

@Service
public class OrderItemService extends ServiceImpl<OrderItemMapper, OrderItem> {
    public Page<OrderItem> orderItemQuery(int page, int pageSize, OrderItem orderItem) {

        QueryWrapper<OrderItem> wrapper = new QueryWrapper<>();
        Page mPage = new Page<>(page, pageSize);
        return this.baseMapper.selectPage(mPage, wrapper);

    }
}
